/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Comuna implements Serializable {
	public Comuna() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_COMUNA_REGIONRE_NUMEROREGION) {
			this.regionre_numeroregion = (orm.Region) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int co_id;
	
	private orm.Region regionre_numeroregion;
	
	private String co_nombreprovincia;
	
	public void setCo_id(int value) {
		this.co_id = value;
	}
	
	public int getCo_id() {
		return co_id;
	}
	
	public int getORMID() {
		return getCo_id();
	}
	
	/**
	 * nombre provincia
	 */
	public void setCo_nombreprovincia(String value) {
		this.co_nombreprovincia = value;
	}
	
	/**
	 * nombre provincia
	 */
	public String getCo_nombreprovincia() {
		return co_nombreprovincia;
	}
	
	public void setRegionre_numeroregion(orm.Region value) {
		if (regionre_numeroregion != null) {
			regionre_numeroregion.comuna.remove(this);
		}
		if (value != null) {
			value.comuna.add(this);
		}
	}
	
	public orm.Region getRegionre_numeroregion() {
		return regionre_numeroregion;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Regionre_numeroregion(orm.Region value) {
		this.regionre_numeroregion = value;
	}
	
	private orm.Region getORM_Regionre_numeroregion() {
		return regionre_numeroregion;
	}
	
	public String toString() {
		return String.valueOf(getCo_id());
	}
	
}
